import { http } from "@/utils/http";

export type Notice = {
	id: string;
	title: string;
	type: string;
	content: string;
	createtime: string;
	creater: string;
	icon: string;
}

export type NoticeResult = {
	success: boolean;
	code: number;
	msg: string;
	data:{
		total: number;
		limit: number;
		current: number;
		records: Array<Notice>;
	}
}

export const getNoticeList = () => {
	return http.request<NoticeResult>("get", "/notice/query");
}